package org.dromara.bzIns.domain.bo;

import org.dromara.bzIns.domain.UserCar;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户汽车业务对象 bz_user_car
 *
 * @author bz_huaYal9146
 * @date 2025-03-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserCar.class, reverseConvertGenerate = false)
public class UserCarBo extends BaseEntity {

    /**
     * 用户汽车id
     */
    @NotNull(message = "用户汽车id不能为空", groups = { EditGroup.class })
    private Long carId;

    /**
     * 用户id
     */
//    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carPlate;

    /**
     * 汽车名称
     */
    private String carName;

    /**
     * 行驶证
     */
    @NotBlank(message = "行驶证不能为空", groups = { AddGroup.class, EditGroup.class })
    private String drivingLicense;

    /**
     * 品牌型号
     */
    @NotBlank(message = "品牌型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brandModel;

    /**
     * 车辆识别代码
     */
    @NotBlank(message = "车辆识别代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vehicleIdCode;

    /**
     * 发动机号码
     */
    @NotBlank(message = "发动机号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String engineCode;

    /**
     * 注册日期
     */
    @NotNull(message = "注册日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date egistrationDate;

    /**
     * 发证日期
     */
    @NotNull(message = "发证日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date issueDate;

    /**
     * 身份证头像图片
     */
    @NotBlank(message = "身份证头像图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idCardAvatar;

    /**
     * 身份证国徽图片
     */
    @NotBlank(message = "身份证国徽图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idCardNational;

    /**
     * 车主姓名
     */
    @NotBlank(message = "车主姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ownerName;

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ownerIdCard;

    /**
     * 身份证起始有效期
     */
    @NotNull(message = "身份证起始有效期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date idCardStartTime;

    /**
     * 身份证结束有效期
     */
    @NotNull(message = "身份证结束有效期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date idCardEndTime;

    /**
     * 车主联系方式
     */
    @NotBlank(message = "车主联系方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ownerPhone;

    /**
     * 是否显示  0-显示，1-不显示
     */
    private Long isDisplay;


}
